<?php 
use yii\widgets\ActiveForm;
?>
<link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../static/jBox/Skins/Metro/jbox.css" type="text/css">
<link rel="stylesheet" href="../static/dist/css/AdminLTE.min.css" type="text/css">
<link rel="stylesheet" href="../static/css/admin.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/treeTable/jquery.treetable.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/treeTable/jquery.treetable.theme.default.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/datatables/jquery.dataTables.css" type="text/css">
<style>
.ul_tree_display {
	display: none;
}

.tr_tree_display {
	display: none;
}

.table>tbody>tr>td {
	vertical-align: middle;
	font-size: 0.8em;
}

.layui-layer-content p {
	padding: 15px;
}

.dataTables_length {
	margin-top: 10px;
}
</style>
<div class="tabs-panel">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<div class="box-body">
    					会员账号:<input class="depart-input" name="cust_member_no" id="cust_member_no" type="text" placeholder="">
    					处理状态:<select name="use_flg" id="use_flg" class="depart-input" style="width: 200px">
    						<?php if (is_array($GLOBALS['WISH_SINGLE_REPORT_STATUS']) && count($GLOBALS['WISH_SINGLE_REPORT_STATUS']) > 0)foreach ($GLOBALS['WISH_SINGLE_REPORT_STATUS'] as $status=>$status_name){?>
    						<option value="<?=$status?>" <?=($status === 0 ? 'selected' : '')?>><?=$status_name?></option>
    						<?php }?>
    					</select>
    					<button type="button" class="btn btn-primary depart-modal" onclick="table_list_reload()" style="width: 100px;margin-left:100px;">查询</button>
    					&nbsp;
    					<button type="button" class="btn btn-warning depart-modal" id="reset_button" style="width: 100px;">重置</button>
					</div>
					<div class="box-body">
    					预约姓名:	<input class="depart-input" name="reserv_name" id="reserv_name" type="text" placeholder="">
    					预约联系电话:	<input class="depart-input" name="reserv_mobile" id="reserv_mobile" type="text" placeholder="">
    					<a href="javascript:void(0)" onclick="exportWishSingleReport()" style="margin-left:70px;text-decoration:underline">Excel导出</a>
					</div>
				</div>
				<div class="box-body">
					<table id="table_list" class="table table-bordered table-hover">
						<thead>
							<tr>
								<th class=""><input name="check_all" id="check_all" value="" type="checkbox"/>选择</th>
								<th class="">序号</th>
								<th class="">会员账号</th>
								<th class="">预约门店提交时间</th>
								<th class="">顾客姓名</th>
								<th class="">预约联系电话</th>
								<th class="">预约时间</th>
								<th class="">预约时段</th>
								<th class="">心愿单商品</th>
								<th class="">已处理</th>
								<th class="">联系记录</th>
								<th class="">操作日志</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="modal fade" id="wish-goods-modal" style="background: rgba(236, 230, 230, 0.3);" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 75%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">心愿单商品</h4>
            </div>
            <div class="modal-body">
                <form action="/wish-single-report/get-goods" method="post" name="wish_goods_form" id="wish_goods_form">
                    <div class="box-body">
                     	<table id="table_goods_list" class="table table-bordered table-hover">
    						<thead align="center">
    							<tr>
    								<th class="" rowspan="2">序号</th>
    								<th class="" rowspan="2">商品编码</th>
    								<th class="" rowspan="2">商品名称</th>
    								<th class="" rowspan="2">商品添加心愿单时间</th>
    								<th class="" colspan="3">预约门店时</th>
    								<th class="" colspan="3">现在</th>
    							</tr>
    							<tr>
    								<th class="">商品状态</th>
    								<th class="">促销ID</th>
    								<th class="">活动标识</th>
    								<th class="">商品状态</th>
    								<th class="">促销ID</th>
    								<th class="">活动标识</th>
    							</tr>
    						</thead>
    						<tbody>
    						</tbody>
    					</table>
                        <input name="id" value="" type="hidden"/>
                    </div>
                    <div class="modal-footer">
                    	<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="wish-single-report-modal" style="background: rgba(236, 230, 230, 0.3);" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 50%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">联系记录</h4>
            </div>
            <div class="modal-body">
                <form action="/wish-single-report/write-wish-single-report-record" method="post" name="wish_single_report_form" id="wish_single_report_form">
                    <div class="box-body">
                    	<div class="col-sm-12 old_log">
                            <label for="tag_group_id_add">联系记录</label>
                        </div>
                        <div class="col-sm-12">
                            <label for="tag_group_id_add">联系记录：</label>
							<textarea class="form-control" style="width: 75%;" rows="" id="record" name="record" cols=""></textarea>
                        </div>
                        <input name="id" value="" type="hidden"/>
                    </div>
                    <div class="modal-footer">
                    	<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                		<button type="button" class="btn btn-primary ajax_post_tag">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<form action="/wish-single-report/export-wish-single-report" id="wish-single-report-select" method="post">
	<input name="share_wish_reserv_id" value="" type="hidden"/>
</form>
<!-- 固定js -->
<script type="text/javascript" src="/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/plugins/datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="/static/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="/static/jBox/i18n/jquery.jBox-zh-CN.js"></script>
<script type="text/javascript" src="/static/plugins/treeTable/jquery.treetable.js"></script>
<!-- 自定义js -->
<script type="text/javascript" src="/static/app/global.js?version=<?=Yii::$app->params['version']?>"></script>
<script type="text/javascript" src="/static/app/wish-single-report/index.js?version=<?=Yii::$app->params['version']?>"></script>